package com.basin.micro.auth.module.perm.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.basin.common.mp.annotation.RequireValFields;
import com.basin.common.mp.annotation.UniqueKeys;
import com.basin.common.mp.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("basin_auth_perm")
@UniqueKeys(fields = {"perm_code", "perm_node"})
@RequireValFields(fields = {"perm_code", "perm_node", "rel_role_code"})
public class PermEntity extends BaseEntity {
    private String relRoleCode;
    private String permCode;
    private String permName;
    private Integer permStatus;
    private String permDesc;
}
